package com.ruoyi.machine.advanced.repair.register.mapper;

import com.ruoyi.machine.advanced.repair.register.domain.RepairRegister;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 设备维修登记表
 * 数据层
 */
@Mapper
public interface RepairRegisterMapper {
    /**
     * 查看设备维修登记表
     * @param repairRegister
     * @return
     */
    public List<RepairRegister> selectRepairRegisterList(RepairRegister repairRegister);

    /**
     * 根据Id查看设备维修登记表
     * @param repairRegisterId
     * @return
     */
    public RepairRegister selectRepairRegisterById(String repairRegisterId);

    /**
     * 添加设备维修登记表
     * @param repairRegister
     * @return
     */
    public int insertRepairRegister(RepairRegister repairRegister);

    /**
     * 更新设备维修登记表
     * @param repairRegister
     * @return
     */
    public int updateRepairRegister(RepairRegister repairRegister);

    /**
     * 删除设备维修登记表
     * 仅修改删除标志
     * @param repairRegister
     * @return
     */
    public int updateRepairRegisterDeleteFlag(RepairRegister repairRegister);
}
